import baseRequest from '../utils/requset'
import baseIndexRequest from '../utils/requset'


// 确认评价  商品订单评价
// /api/miniProgram/comment/submit
export function submitCommentApi (data) {
    return baseRequest.baseRequest(
        'api/miniProgram/comment/submit',
        'post',
        JSON.stringify(data)
    )
}

// 追评/api/miniProgram/comment/submitFollowups    追评
export function submitFollowupsApi (data) {
    return baseRequest.baseRequest(
        'api/miniProgram/comment/submitFollowups',
        'post',
        JSON.stringify(data)
    )
}


// 查看评价明细 /api/miniProgram/comment/detail/{commentId} get
export function getCommentDetailApi (commentId) {
    return baseRequest.baseRequest(
        `api/miniProgram/comment/detail/${commentId}`,
        'get'
    )
}

// 商品评价列表 /api/product/pageCommentList get
export function getProductCommentListApi (data) {
    return baseRequest.baseRequest(
        'api/product/pageCommentList',
        'get',
        data
    )
}


// }

// // 活动评论点赞信息 /api/activityComment/likeComment get
export function likeCommentApi (data) {
    return baseRequest.baseRequest(
        'api/activityComment/likeComment',
        'get',
        data
    )
}

// 新的评价列表 /api/miniProgram/comment/commentList  post
export function getNewCommentListApi (data) {
    return baseRequest.baseRequest(
        'api/miniProgram/comment/commentList',
        'post',
        JSON.stringify(data)
    )
}

// 商品评论点赞  /api/miniProgram/comment/like  点赞或者取消点赞    post请求
export function productLikeCommentApi (data) {
    return baseRequest.baseRequest(
        'api/miniProgram/comment/like',
        'post',
        JSON.stringify(data)
    )
}